package com.example.rocketdemo.config;

import org.apache.rocketmq.spring.autoconfigure.RocketMQAutoConfiguration;
import org.apache.rocketmq.spring.autoconfigure.RocketMQProperties;
import org.apache.rocketmq.spring.core.RocketMQTemplate;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.boot.autoconfigure.condition.ConditionalOnBean;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
import org.springframework.context.annotation.Import;

/**
 * @author GuoAo
 * @className RocketConfig
 * @date 2025/6/24
 * @description TODO
 */
@Configuration
@Import(RocketMQAutoConfiguration.class)
public class RocketConfig {
    @Value("${rocketmq.name-server}")
    private String nameServer;
    @Value("${rocketmq.producer.group}")
    private String producerGroup;

//    @Bean
//    public RocketMQTemplate rocketMQTemplate(){
//        RocketMQTemplate rocketMQTemplate = new RocketMQTemplate();
//        rocketMQTemplate.setProducer(new RocketMQProperties.Producer());
//        return rocketMQTemplate;
//    }
}
